<?php
/**
 * @Author: Marte
 * @Date:   2017-08-21 09:43:57
 * @Last Modified by:   Marte
 * @Last Modified time: 2017-08-21 10:29:29
 */

//  echo PHP_VERSION;
// echo @function_exists (mysql_close)?"是":"否";
// echo @get_cfg_var("mysql.allow_persistent")?"是 ":"否";
// echo @get_cfg_var("mysql.max_links")==-1 ? "不限" : @get_cfg_var("mysql.max_links");
// echo PHP_OS;
// echo $_SERVER ['SERVER_SOFTWARE'];

?>
<div class="system">
    <span class="system_title">系统信息</span>
    <ul>
        <li><span>服务器主机名称：</span><?php echo $_SERVER["HTTP_HOST"];?></li>
        <li><span>Apache及PHP版本：</span><?PHP echo $_SERVER ['SERVER_SOFTWARE']; ?></li>
        <li><span>管理员邮箱：</span>1392372716@qq.com</li>
        <li><span>服务器IP：</span><?php echo GetHostByName($_SERVER['SERVER_NAME']);?></li>
        <li><span>获取服务器Web端口： </span><?php echo $_SERVER['SERVER_PORT']; ?></li>
        <li><span>获取服务器语言： </span><?php echo $_SERVER['HTTP_ACCEPT_LANGUAGE'];?></li>
        <li><span>数据库持续连接：</span><?php echo @get_cfg_var("mysql.allow_persistent")?"是 ":"否";?></li>
        <li><span>服务器主目录：</span><?php echo  $_SERVER['SystemRoot'];?></li>
        <li><span>服务器操作系统： </span><?PHP echo PHP_OS; ?></li>
        <li><span>MySQL最大连接数：</span><?php echo @get_cfg_var('mysql.max_links')==-1 ? '不限' : @get_cfg_var("mysql.max_links");?></li>
        <li><span>最大上传限制：</span><?PHP echo get_cfg_var ("upload_max_filesize")?get_cfg_var ("upload_max_filesize"):"不允许上传附件";?></li>
        <li><span>脚本运行占用最大内存：</span><?PHP echo get_cfg_var ("memory_limit")?get_cfg_var("memory_limit"):"无"?></li>
        <li><span>获得服务器系统时间:</span><?php  echo date('Y-m-d H:i:s');?></li>
    </ul>
</div>

